#include <iostream>

using namespace std;

class Draw
{
public:
    int height;
    void drawTriangular()
    {
        int i,j;
        for(i=1;i<=height;i++)
        {
            for(j=1;j<=i;j++)
            {
                cout<<"*";
            }
            cout<<endl;
        }
    }
    void drawRectangular()
    {
        int i,j;
        for(i=1;i<=height;i++)
        {
            for(j=1;j<=2*height;j++)
            {
                cout<<"*";
            }
            cout<<endl;
        }
    }
    void drawSquare()
    {
        int i,j;
        for(i=1;i<=height;i++)
        {
            for(j=1;j<=height;j++)
            {
                cout<<"*";
            }
            cout<<endl;

        }
    }
    void drawParallelogram()
    {
        int i,j,k;
        for(i=1;i<=height;i++)
        {
            for(j=1;j<i;j++)
            {
                cout<<" ";
            }
            for(k=1;k<=2*height;k++)
            {
                cout<<"*";
            }
            cout<<endl;
        }

    }
};



int main()
{
    Draw draw1;
    draw1.height=3;
    draw1.drawTriangular();
    cout<<""<<endl;
    draw1.drawRectangular();
    cout<<""<<endl;
    draw1.drawSquare();
    cout<<""<<endl;
    draw1.drawParallelogram();


    return 0;
}
